#pragma once

class CCharOperatorState;

class CCharListWnd :
	public CD3DWnd
{
protected:
	CCharOperatorState *	m_pState;
	CD3DSimpleList *		m_pList;
public:
	CCharListWnd(void);
	CCharListWnd(CD3DGUI * pGUI);
	~CCharListWnd(void);

	void SetState(CCharOperatorState * pState)
	{
		m_pState=pState;
	}
	CD3DSimpleList * GetList()
	{
		return m_pList;
	}

	virtual BOOL OnMessage(CD3DWnd * pWnd,UINT msg, WPARAM wParam, LPARAM lParam);

	void FillList(CEasyArray<CBaseCharInfo *>& CharInfoList);

	int GetSelectedChar();
};
